#include <iostream>
#include "Rational.h"

using namespace std;

int main() {
	Rational a(4,3);
	Rational b(2,5);
	Rational c(0,1);
	Rational e(12,-3);
	std::cout << double(b) << std::endl;
	std::cout << (a < b ) << " " << (a == b) << " " << (a != b) << std::endl;
	std::cout << "c " << c;
	std::cout << "e " << e;
	std::cout << "a++ " << a++ << " " << a << std::endl;
	std::cout << "a-- " << a-- << " " << a << std::endl;
	std::cout << "++a " << ++a << " " << a << std::endl;
	--a;
	a *= b;
	std::cout << a << std::endl;
	a /= b;
	std::cout << a << std::endl;
	std::cout << (a*b) << std::endl;
	return 0;
}
